package structure.bridge.thirdDimensions;

import structure.bridge.thirdDimensions.arms.ArmsAbstraction;
import structure.bridge.thirdDimensions.arms.Cavalry;
import structure.bridge.thirdDimensions.corps.CorpsInterface;
import structure.bridge.thirdDimensions.corps.QingZhouArmy;
import structure.bridge.thirdDimensions.label.*;

public class Demo {
    public static void main(String[] args) {
                // 标签采用装饰器模式 便于扩展 兵种 + 标签采用 桥接模式
                LabelInterface labelInterface = new Label();
                LableDecortor lableDecortor = new Brave(new Agile(labelInterface));
                CorpsInterface corpsInterface = new QingZhouArmy();
                ArmsAbstraction arms = new Cavalry(lableDecortor,corpsInterface);
                arms.showNames();
    }

}
